package filter

import (
	"github.com/gogf/gf/v2/net/ghttp"
)

func HookNoCache(r *ghttp.Request) {
	// 告诉前端不缓存
	r.Response.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
}
